import { request } from "./request";


// 个人中心
export function userIndex(){
    return request({
        url:"/member/app/user/index",
        method: "get",
    })
};
// 地址列表
export function addressList(){
    return request({
        url:"/member/app/user/addressList",
        method: "get",
    })
};
// 新增编辑地址
export function addressSave(data){
    return request({
        url:"/member/app/user/addressSave",
        method: "post",
		data
    })
};
// 删除地址
export function addressDel(data){
    return request({
        url:"/member/app/user/addressDel",
        method: "get",
		data
    })
};
// 设为默认地址
export function defaultAddressSet(data){
    return request({
        url:"/member/app/user/defaultAddressSet",
        method: "post",
		data
    })
};
// 设为满载状态
export function changeFullyStatus(data){
    return request({
        url:"/member/app/user/changeFullyStatus",
        method: "get",
		data
    })
};
// 登录
export function bindInfoByEncryptio(data){
    return request({
        url:"/member/app/auth/bindInfoByEncryption",
        method: "post",
		data
    })
};
// 自动登录
export function getSessionIdByJsCode(data){
    return request({
        url:"/member/app/auth/getSessionIdByJsCode",
        method: "post",
		data
    })
};

// 实名认证
export function idCardSave(data){
    return request({
        url:"/member/app/user/idCardSave",
        method: "post",
		data
    })
};
// 修改头像
export function updatePortrait(data){
    return request({
        url:"/member/app/user/updatePortrait",
        method: "post",
		data
    })
};
// 修改昵称
export function updateNickname(data){
    return request({
        url:"/member/app/user/updateNickname",
        method: "post",
		data
    })
};
